package hui.com.service.impl;

import hui.com.dao.PermsDao;
import hui.com.model.entity.PermsEntity;
import hui.com.service.PermsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PermsServiceImpl implements PermsService {
    @Resource
    PermsDao permsDao;

    @Override
    public String[] getUserPermsCode(Integer id) {
        return permsDao.getUserPermsCode(id);
    }

    @Override
    public String[] getUserRolePermsCode(Integer id) {
        return permsDao.getUserRolePermsCode(id);
    }

    @Override
    public List<PermsEntity> getPermsList(PermsEntity perms) {
        return permsDao.getPermsList(perms);
    }
}
